package priv.pfz.qatool.model;

import priv.pfz.qatool.enums.QAToolParamType;

import java.util.List;

/**
 * Created by fangzhou.peng on 2017/8/11.
 */
public class QTParam {

    /**
     * 第几个参数，从0开始
     */
    private int index;

    /**
     * java类型
     */
    private Class clazz;

    /**
     * 默认值（解析前的string）
     */
    private String defaultValue = "";

    /**
     * 输入类型
     */
    private QAToolParamType type = QAToolParamType.INPUT;

    /**
     * 参数名
     */
    private String name;

    /**
     * 说明
     */
    private String desc;

    /**
     * 选项
     */
    private List<String> selectOptions;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public QAToolParamType getType() {
        return type;
    }

    public void setType(QAToolParamType type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public List<String> getSelectOptions() {
        return selectOptions;
    }

    public void setSelectOptions(List<String> selectOptions) {
        this.selectOptions = selectOptions;
    }
}
